<?php

namespace App\Listeners;

use App\Events\TransSqlEevent;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Log;
use DB;

class TransSqlListener
{
    /**
     * Create the event listener.
     *
     * @return void
     */
    public function __construct()
    {
        //
    }

    /**
     * Handle the event.
     *
     * @param  TransSqlEevent  $event
     * @return void
     */
    public function handle(TransSqlEevent $event)
    {
        //
        Log::info("TransSqlListener....1:".$event->sql);
        $event->broadcastOn();
    }
}
